<?php

namespace App\Transformers\Company;

use App\Transformers\Traits\WithTransformerAuthor;
use App\Transformers\Traits\WithTransformerMedia;
use Illuminate\Database\Eloquent\Model;
use League\Fractal\TransformerAbstract;

class ArchiveTransformer extends TransformerAbstract
{
    use WithTransformerAuthor;

    protected $availableIncludes = ['author'];

    public function transform(Model $model)
    {
        return $model->attributesToArray();
    }
}